module Main exposing (..)

import Html exposing (Html, div, text, program)
import Model exposing (..)
import Index



init : ( Website, Cmd Msg )
init =
    ( Website "外卖订餐系统" , Cmd.none )



update : Msg -> Website -> ( Website, Cmd Msg )
update msg model =
    case msg of
        UserLogin ->
            ( model, Cmd.none )



subscriptions : Website -> Sub Msg
subscriptions model =
    Sub.none



main : Program Never Website Msg
main =
    program
        { init = init
        , view = Index.view
        , update = update
        , subscriptions = subscriptions
        }